<!-- <import type='css' file="Css.text" /> -->

<import type='js' file="Js.publish" />
<import type='js' file="Js.Markdown" />
<import type='js' file="Js.Markdown_002" />
<import type='js' file="Js.Markdown_003" />
<import type='js' file="Js.fileupload" />




		
	

<div class="aw-container-wrap">
	<div class="container aw-publish">
		<div class="row">
			<div class="aw-content-wrap clearfix">
				<div class="col-sm-12 col-md-9 aw-main-content">
					<!-- tab 切换 -->
					<ul class="nav nav-tabs aw-nav-tabs active">
												<li class="active"><a href="{:U('index/people/publish')}">问题</a></li>
						<h2 class="hidden-xs"><i class="icon icon-ask"></i> 发起</h2>
					</ul>
					<!-- end tab 切换 -->
					<form action="{:U('index/People/publish')}" method="post" id="question_form" >
						<input type="hidden" name="question_id" id="question_id" value="" />
						<input type="hidden" name="ask_user_id" value="" />
							<select name="category_id" class="hide" id="category_id">
								<?php foreach ($data as $value) {
									
								 ?>
								<option value="<?php echo $value['id'] ?>"> <?php echo $value['cname'] ?> </option>
								<?php } ?>
								<!-- <option value="1">NUKE资讯</option>
								<option value="2">NUKE软件</option>
								<option value="3">NUKE插件</option>
								<option value="4">NUKE教程</option>
								<option value="5">NUKE开发</option>
								<option value="6">NUKE问答</option>
								<option value="7">NukeStudio</option>
								<option value="8">资源分享</option>
								<option value="9">Nuke合成</option> -->						
							</select>
												<div class="aw-mod aw-mod-publish">
							<div class="mod-body">
								<h3>问题标题:</h3>
								<!-- 问题标题 -->
								<div class="aw-publish-title">
									<div>
										<input type="text" placeholder="问题标题..." name="title" id="question_contents" value="" class="form-control" />
										<div class="aw-publish-suggest-question hide">
											<p class="text-color-999">你的问题可能已经有答案</p>
											<ul class="aw-dropdown-list">
											</ul>
										</div>
									</div>
									<div class="dropdown">
										<div class="dropdown-toggle" data-toggle="dropdown">
											<span id="aw-topic-tags-select" class="aw-hide-txt">选择分类</span>
											<a href="javascript:;"><i class="icon icon-down"></i></a></a>
										</div>
									</div>
								</div>
								<!-- end 问题标题 -->

								<h3>问题补充 (选填):</h3>
								<!-- <input type="text" class="aw-mod aw-editor-box" id="wmd-panel" name="content"> -->
								<div class="aw-mod aw-editor-box" id="wmd-panel">
									<!-- <div class="wmd-panel" >
										<div class="wmd-panel">
								            <div id="wmd-button-bar"></div>
								            <textarea class="wmd-input form-control autosize" id="wmd-input" rows="15" name="question_detail"></textarea>
								        </div>
									</div> -->
									<!-- <div class="mod-body">

										<span class="pull-right text-color-999" id="question_detail_message">&nbsp;</span>
									</div> -->
									<!-- <div class="mod-footer">
										<div id="wmd-preview" class="wmd-panel wmd-preview"></div>
									</div>  -->
								</div>
																<h3>添加话题:</h3>
								<div class="aw-topic-bar" data-type="publish">
									<div class="tag-bar clearfix">
										
										<?php foreach ($data as  $value) {?>
											<span class="aw-edit-topic icon-inverse"> <?php echo $value['cname'] ?></span>
										<?php } ?>
										
										
									</div>
								</div>
																															</div>
							<div class="mod-footer clearfix">
								<a href="/integral/rule/" target="_blank">[积分规则]</a>								<span class="aw-anonymity">
																		
								</span>
								<!-- <a class="btn btn-large btn-success btn-publish-submit" id="publish_submit" onclick="AWS.ajax_post($('#question_form')); return false;">确认发起</a> -->
								<input type="submit" class="btn btn-large btn-success btn-publish-submit" id="publish_submit" value="确认发起">
							</div>
						</div>
					</form>
				</div>
				<!-- 侧边栏 -->
				<div class="col-sm-12 col-md-3 aw-side-bar hidden-xs">
					<!-- 问题发起指南 -->
					<div class="aw-mod publish-help">
						<div class="mod-head">
							<h3>问题发起指南</h3>
						</div>
						<div class="mod-body">
							<p><b>• 问题标题:</b> 请用准确的语言描述您发布的问题思想</p>
							<p><b>• 问题补充:</b> 详细补充您的问题内容, 并提供一些相关的素材以供参与者更多的了解您所要问题的主题思想</p>
							<p><b>• 选择话题:</b> 选择一个或者多个合适的话题, 让您发布的问题得到更多有相同兴趣的人参与. 所有人可以在您发布问题之后添加和编辑该问题所属的话题</p>
														<p><b>• 关于积分：</b> 发起一个问题会消耗您 20 个积分, 每多一个回复你将获得 5 个积分的奖励 ,为了您的利益, 在发起问题的时候希望能够更好的描述您的问题以及多使用站内搜索功能.</p>
													</div>
					</div>
					<!-- end 问题发起指南 -->
				</div>
				<!-- end 侧边栏 -->
			</div>
		</div>
	</div>
</div>

<script type="text/javascript">
	var ATTACH_ACCESS_KEY = '0fb606ffe63217b5e85d24e325eb2db1';
	var CATEGORY_ID = 0;
	var PUBLISH_TYPE = 'question';
</script>
	<!-- <js href="__PUBLIC__/js/jquery-2.0.2.js" /> -->
    <js href="__PUBLIC__/ueditor/ueditor.config.js" />    
    <js href="__PUBLIC__/ueditor/ueditor.all.min.js" />
<script>
    $(function(){
        var ue = UE.getEditor('wmd-panel',{
            serverUrl :'{:U('index/People/ueditor')}'
        });
    })
</script>
